package com.sailfish.springbootdemo.service.db2;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db2.*;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface PcbNewTechnologyService {

    List<PcbNewTechnologyParam> getAllPcbNewTechnologyParam(PcbNewTechnologyParam param);

    Result insertOrUpdatePcbNewTechnologyParam(PcbNewTechnologyParam param);

    Result deletePcbNewTechnologyParam(Integer id);

    Result checkPcbNewTechnologyHasData(Integer id);


    Map<String, NewTechnologyInfo> getAllPcbNewTechnologyLibrary(List<PcbNewTechnologyLibrary> params, String approveStatus);

    Result insertOrUpdatePcbNewTechnologyLibrary(String data);

    Result deletePcbNewTechnologyLibrary(String row_key, String paramKey);

    Result updatePcbNewTechnologyStatus(String rowKey, Integer responsibilityUserId, String responsibilityUserName, String newTechnologyStatus, String remark, String approveStatus, Integer approverUserId);

    Result insert(PcbNewTechnologyInfo param);

    Result updateStatus(String status, Integer id, Integer approveUser, String remark);

    PcbNewTechnologyFile getFileById(Integer id);
}
